package com.opgea.crm.web.security;
/*
public class CrmAuthenticationFailureHandler extends SimpleUrlAuthenticationFailureHandler {


	public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception)
			throws IOException, ServletException {
		Writer out = null;
		try {
			HttpServletResponseWrapper responseWrapper = new HttpServletResponseWrapper(response);
			out = responseWrapper.getWriter();
			out.write("{ success: false, errors: { reason: 'Username or Password was incorrect.' }}");
		} finally {
			if (out != null) {
				out.close();
			}
		}
		
	}

}
*/